package pl.aurelius;

import org.apache.wicket.devutils.DevUtilsPage;
import org.apache.wicket.devutils.debugbar.DebugBar;
import org.apache.wicket.devutils.inspector.InspectorPage;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.model.Model;
import org.apache.wicket.request.mapper.parameter.PageParameters;

/**
 *
 * Blah.
 *
 * @author Lukasz
 */
public class HomePage extends WebPage {

    /**
     * Cos.
     */
    private static final long serialVersionUID = 1L;
    private String version;

    /**
     * Hippie.
     *
     * @param parameters some params.
     */
    public HomePage(final PageParameters parameters) {
        super();
        String property = System.getProperty("org.apache.commons.logging.Log");
        version = getApplication().getFrameworkSettings().getVersion();
        add(new Label("version", new Model<String>() {

            @Override
            public String getObject() {
                return Long.toString(System.currentTimeMillis());
            }

        }));
//        add(new Link("devDebug") {
//
//            @Override
//            public void onClick() {
//
//                setResponsePage(InspectorPage.class);
//            }
//        });
        add(new DebugBar("debugBar"));
        add(new Link("linkk") {

            @Override
            public void onClick() {
                setResponsePage(SomeWicketPage.class);
            }
        });
    }
}
